//
//  CCTableView.m
//  SmartHomeViews
//
//  Created by haimen_ios_imac on 2017/6/20.
//  Copyright © 2017年 深圳海曼科技有限公司. All rights reserved.
//

#import "CCTableView.h"

@implementation CCTableView

- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style
{
    if (self = [super initWithFrame:frame style:style]) {
        
        self.separatorStyle = UITableViewCellSeparatorStyleNone;
        self.showsVerticalScrollIndicator = NO;
        self.showsHorizontalScrollIndicator = NO;
        self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
    }
    return self;
}

+ (instancetype)tableViewWithFrame:(CGRect)frame delegate:(id)delegate datasource:(id)datasource
{
    CCTableView *tableView = [[CCTableView alloc] initWithFrame:frame style:UITableViewStyleGrouped];
    tableView.dataSource = datasource;
    tableView.delegate = delegate;
    return tableView;
}


@end
